package com.tea.mapper;

import com.tea.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CouponMapper {

    @Select("select * from coupons where id=#{couponId}")
    Coupon selectById(Long couponId);


    List<Coupon> list(Coupon coupon);
}
